module.exports = {
  title: '下载链接',
  type: 'list',
  async fetch({ page, args }) {
     // var config = { proxy: { host: '36.99.206.3', port: '42911' }}

    let resp = await $http.get(`${args.url}`)
    let html = resp.data
    const $ = cheerio.load(html)
    let list = $('.downfile')
    console.log(list)
    let items = []
    list.each((index, li) => {
      let title = $('a' ,li).text()
      let url = $('a', li).attr('href')
      items.push({
        link: url,
        style: 'list',
        title: title,
        summary: '点我去浏览器下载嗷',
        route: $route(url)
      })
    })
    return {
      items
    }
  }




}
